import request from '@/utils/request';

/**
 * 查询营业收入管理列表
 * @param query
 * @returns {*}
 */

export const listOperatingRevenue = (query) => {
  return request({
    url: '/system/operatingRevenue/list1',
    method: 'get',
    params: query
  });
};

/**
 * 查询营业收入管理详细
 * @param operatingRevenueId
 */
export const getOperatingRevenue = (operatingRevenueId) => {
  return request({
    url: '/system/operatingRevenue/' + operatingRevenueId,
    method: 'get'
  });
};

/**
 * 新增营业收入管理
 * @param data
 */
export const addOperatingRevenue = (data) => {
  return request({
    url: '/system/operatingRevenue',
    method: 'post',
    data: data
  });
};

/**
 * 修改营业收入管理
 * @param data
 */
export const updateOperatingRevenue = (data) => {
  return request({
    url: '/system/operatingRevenue',
    method: 'put',
    data: data
  });
};

/**
 * 删除营业收入管理
 * @param operatingRevenueId
 */
export const delOperatingRevenue = (operatingRevenueId) => {
  return request({
    url: '/system/operatingRevenue/' + operatingRevenueId,
    method: 'delete'
  });
};
